package com.example.plat.service;

import com.example.plat.enity.User;
import com.example.plat.exception.UserException;

public interface UserService {

    //查询用户
    User findUser(String userName);

    //添加用户
    User addUser(User user) throws UserException;

    //删除用户
    void deleteUser(Long userId)throws UserException;

    //修改密码
    User changeUser(User user)throws UserException;

}
